package com.yl.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lfs
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TRedBlack extends Model<TRedBlack> {

    private static final long serialVersionUID = 1L;

    @TableId("LIST_ID")
    private Long listId;

    @TableField("ENTERPRISE_NAME")
    private String enterpriseName;

    @TableField("SHOP_SIGN")
    private String shopSign;

    @TableField("ADDRESS")
    private String address;

    @TableField("EVAL_TIME")
    private String evalTime;

    /**
     * 0-黑榜   1-红榜
     */
    @TableField("LIST_TYPE")
    private Integer listType;

    /**
     * 0-无效，1-有效
     */
    @TableField("IS_VALID")
    private Integer isValid;


    @Override
    protected Serializable pkVal() {
        return this.listId;
    }

}
